package com.sctvcloud.qingchuan.ui.adapter;

import android.content.Context;

import com.ruihang.generalibrary.ui.widget.CustomFontTextView;
import com.sctvcloud.qingchuan.R;
import com.sctvcloud.qingchuan.beans.NewsItem;
import com.sctvcloud.qingchuan.ui.widget.marqueeview.CommonAdapter;
import com.sctvcloud.qingchuan.ui.widget.marqueeview.ViewHolder;

import java.util.List;

public class MarqueeAdapter extends CommonAdapter<NewsItem> {

    public MarqueeAdapter(Context context, List<NewsItem> datas) {
        super(context, R.layout.item_marquee_text, datas);
    }

    @Override
    protected void convert(ViewHolder viewHolder, NewsItem item, int position) {
        CustomFontTextView tv = viewHolder.getView(R.id.notice_title);
        tv.setText(item.getNewsTitle());
    }

}
